package com.tt.dp.command.invoke;

import com.tt.dp.command.Command;

public class SimpleRemoteControl {

    private Command command;

    public SimpleRemoteControl(){

    }

    public SimpleRemoteControl(Command command){
        this.command = command;
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public void buttonWasPressed(){
        command.execute();
    }
}
